import java.util.*;
public class Starts02{
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int c=sc.nextInt();
		for(int i = 1 ; i <= c; i++){
			int start = 2 * i - 1;
			for (int j = 1 ;j <= c - i  ;j++ ) {
				System.out.print(" ");
			}
			for(int j = 1; j <= start ; j++){
				if(j == 1 || j == start){
					System.out.print("*");
				}else{
					System.out.print(" ");
				}
			}
			System.out.println("");
			start += 2;
		}
		for ( int i = c; i >= 1 ; i-- ) {
			int start = 2 * i - 1;
			for (int j = 1 ;j <= c - i  ;j++ ) {
				System.out.print(" ");
			}
			for(int j = 1; j <= start ; j++){
				if(j == 1 || j == start){
					System.out.print("*");
				}else{
					System.out.print(" ");
				}
			}
			System.out.println("");
			start += 2;
		}
	}
}